//
//  IMGroupCreateMemberCell.swift
//  GLUZSwift
//
//  Created by xyanl on 2025/7/14.
//

import UIKit
import Reusable
import Kingfisher

extension IMGroupCreateMemberCell: NibReusable {}

class IMGroupCreateMemberCell: UICollectionViewCell {

    @IBOutlet weak var deleteButton: UIButton!
    @IBOutlet weak var iconImageView: UIImageView!
    
    var model: UserModel? {
        didSet {
            guard let model = model else { return }
            
            iconImageView.kf.setImage(with: URL(string: model.avatar))
            
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        iconImageView.addRoundedCorners(radius: 25)
    }

}
